{% extends "account/base.html" %}

{% load i18n %}
{% load account %}

{% block head_title %}确认邮箱{% endblock %}

{% block content %}
<div class="container">

<h1 class="mt-4">确认邮箱</h1>

{% if confirmation %}

{% user_display confirmation.email_address.user as user_display %}

<p>{%  with confirmation.email_address.email as email %}请确认 <a href="mailto:{{ email }}">{{ email }}</a> 是否是用户 {{ user_display }}的邮箱地址{% endwith %}</p>

<form method="post" action="{% url 'account_confirm_email' confirmation.key %}">
{% csrf_token %}
    <button class="btn btn-outline-secondary" type="submit">确认</button>
</form>

{% else %}

{% url 'account_email' as email_url %}

<p>{% blocktrans %}This e-mail confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new e-mail confirmation request</a>.{% endblocktrans %}</p>

{% endif %}
</div>

{% endblock %}
